home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / VXAVTOOL.ZIP / EXEC-VIR.ZIP / MDL.ZIP / RND_NUM.ASM < prev    next >
Encoding:
Assembly Source File  |  1996-02-27  |  425 b   |  17 lines

  1. ;RND_NUM - module for Mass Destruction Library
  2. ;written by Evil Avatar
  3. .model tiny
  4. .code
  5. public rnd_num
  6.  
  7. rnd_num:
  8.         push cx
  9.         push dx               ;save regs that will be changed
  10.         xor ax, ax
  11.         int 1ah               ;get system time
  12.         xchg dx, ax           ;put lower word into ax
  13.         pop dx
  14.         pop cx
  15.         ret                   ;restore regs and return
  16. end rnd_num
  17.